<template>
  <div>
    <input type="text" @keyup.enter="fn" />
    <input type="text" @keyup.delete="fun" />
  </div>
</template>
<script>
export default {
  name: 'key-Event',
  methods: {
    fn() {
      console.log('按下了enter键')
    },
    fun() {
      console.log('按下了delete键')
    },
  },
}
</script>
